﻿@*安全考核单位列表*@
<script type="text/javascript">
    function delUnitTr(code) {
        var ucodes = $("#ctgl_kh_section").val().replace("'" + code + "',", "");
        $("#ctgl_kh_section").val(ucodes)
        //刷新被考核单位
        $("#div_Units").loadUrl('/SafetyConstruction/ScmSafeAssessment/SafeAssessmentUnitSel', "type=" + $("#sel_item").val() + "&ucodes=" + $("#ctgl_kh_section").val(), null);
    }
</script>
<table class="table" style="width:750px;" id="table_items">
    <thead>
        <tr>
            <th width="30">序号</th>
            <th width="150">标段</th>
            <th width="500">单位名称</th>
            <th width="40">操作</th>
        </tr>
    </thead>
    <tbody>
        @{ int num = 0;}
        @foreach (ProjectUnitInfo item in Model)
        {
            num += 1;
            <tr target="sid_user" rel="@num">
                <td>@num</td>
                <td>@item.UNIT_CODE</td>
                <td>@item.UNIT_NAME</td>
                <td>
                    <a title="删除" href="javascript:delUnitTr('@item.UNIT_CODE')" class="btnDel">删除</a>
                </td>
            </tr>  
        }
    </tbody>
</table>
